package com.example.transdemo.controller;

/*
 * @author zzr
 * @date: 2025/10/03  21:12
 * @description:
 */

import com.example.transdemo.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    private LogService logService;

    @RequestMapping("/insert")
    public void insertLog(String name, String op) {
        // 插入日志
        logService.insert(name, op);
    }
}
